export function createApp(App: any) {
  console.log(App);
  
  return {
    mount(id: string) {
      const container = document.querySelector(id)
      const el = App.render.call(App.data())
      container?.appendChild(el)
    }
  }
}